module.exports = {
	// 基本路径
	baseUrl: '/',
	// 输出文件目录
	outputDir: 'dist',
	// eslint-loader 是否在保存的时候检查
	lintOnSave: false,
	// webpack配置
	// see https://github.com/vuejs/vue-cli/blob/dev/docs/webpack.md
	chainWebpack: () => {},
	configureWebpack: () => {},
	// 生产环境是否生成 sourceMap 文件
	productionSourceMap: false,
	// css相关配置
	css: {
		// 是否使用css分离插件 ExtractTextPlugin
		extract: true,
		// 开启 CSS source maps?
		sourceMap: false,
		// css预设器配置项
		loaderOptions: {},
		// 启用 CSS modules for all css / pre-processor files.
		modules: false
	},
	// use thread-loader for babel & TS in production build
	// enabled by default if the machine has more than 1 cores
	parallel: require('os').cpus().length > 1,
	// PWA 插件相关配置
	// see https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-pwa
	pwa: {},
	// webpack-dev-server 相关配置
	devServer: {
		open: process.platform === 'darwin',
		host: '0.0.0.0',
		port: 8080,
		https: false,
		hotOnly: false,
		// proxy: null, // 设置代理
		proxy: {
		   '/report': {
			    target: 'http://120.26.222.82:9999/report',
			    changeOrigin: true,
			    pathRewrite: {
			      '^/report': '/'
		    	}
		  	},
		  	'/areas': {
			    target: 'http://120.26.222.82:9999/areas',
			    changeOrigin: true,
			    pathRewrite: {
			      '^/areas': '/'
		    	}
		  	},
		  	'/login': {
			    target: 'http://120.26.222.82:9999/login',
			    changeOrigin: true,
			    pathRewrite: {
			      '^/login': '/'
		    	}
		  	},
		  	'/agegroup': {
			    target: 'http://120.26.222.82:9999/agegroup',
			    changeOrigin: true,
			    pathRewrite: {
			      '^/agegroup': '/'
		    	}
		  	},
		  	'/strike': {
			    target: 'http://120.26.222.82:9999/strike',
			    changeOrigin: true,
			    pathRewrite: {
			      '^/strike': '/'
		    	}
		  	},
		  	'/logout': {
			    target: 'http://120.26.222.82:9999/logout',
			    changeOrigin: true,
			    pathRewrite: {
			      '^/logout': '/'
		    	}
		  	},
		  	'/index': {
			    target: 'http://120.26.222.82:9999/index',
			    changeOrigin: true,
			    pathRewrite: {
			      '^/index': '/'
		    	}
		  	}
		},
		before: app => {}
	},
	// 第三方插件配置
	pluginOptions: {
	// ...
	}
}
